a = float(input("请输入a: "))
b = float(input("请输入b: "))

addition = a + b
subtraction = a - b

print("{:.2f} + {:.2f} = {:.2f}".format(a, b, addition))
print("{:.2f} - {:.2f} = {:.2f}".format(a, b, subtraction))